package com.greysh.members.dao;

import java.util.ArrayList;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.greysh.members.model.Member;

public class MemberDao extends SqlMapClientDaoSupport {

	@SuppressWarnings("unchecked")
	public ArrayList<Member> findMember(Member member){
		return (ArrayList<Member>) getSqlMapClientTemplate().queryForList(
				"selectMembers", member);
		
	}

	public void insertMember(Member member) {
		getSqlMapClientTemplate().insert("insertMember", member);
	}
}